package com.rtx.edi.platform.jobextend.bean.dto;

import java.util.List;

import com.baomidou.mybatisplus.annotation.TableName;
import com.rtx.api.annotation.FieldValidate;

import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 定时任务
 * </p>
 *
 */
@TableName("pl_job")
public class PlJobDTO{
	
	private Long pageNum;
	private Long pageSize;
	
    private Long id;//定时任务id

	@FieldValidate
	@ApiModelProperty(value = "定时任务名称")
    private String jobName;
	
	@FieldValidate
	@ApiModelProperty(value = "定时任务描述")
    private String description;
	
	@ApiModelProperty(value = "定时任务分组")
    private String jobGroup;
	
	@FieldValidate
	@ApiModelProperty(value = "触发表达式")
    private String jobCron;
	
	@FieldValidate
	@ApiModelProperty(value = "定时任务类型 自定义定时任务 0 api定时任务 1 insert定时任务 2")
    private String jobType;
    
	@ApiModelProperty(value = "查询数据sql")
    private String querySql;
	@ApiModelProperty(value = "更新状态字段")
    private String updColumn;
	@ApiModelProperty(value = "更新状态sql")
    private String updateSql;
	
	@ApiModelProperty(value = "是否启用")
    private String enable;
    
	@ApiModelProperty(value = "调用目标apiId")
    private Long targetApiId;
	@ApiModelProperty(value = "是否执行成功字段")
    private String statusField;
	@ApiModelProperty(value = "执行成功值")
    private String successStatusValue;
	
	@ApiModelProperty(value = "环境id")
	private String environmentId;
	@ApiModelProperty(value = "请求数据类型")
	private String requestDateType;
	
	private List<PlJobMappingDTO> details;
    
	public String getRequestDateType() {
		return requestDateType;
	}
	public void setRequestDateType(String requestDateType) {
		this.requestDateType = requestDateType;
	}
	public String getEnvironmentId() {
		return environmentId;
	}
	public void setEnvironmentId(String environmentId) {
		this.environmentId = environmentId;
	}
	public List<PlJobMappingDTO> getDetails() {
		return details;
	}
	public void setDetails(List<PlJobMappingDTO> details) {
		this.details = details;
	}
	public Long getPageNum() {
		return pageNum;
	}
	public void setPageNum(Long pageNum) {
		this.pageNum = pageNum;
	}
	public Long getPageSize() {
		return pageSize;
	}
	public void setPageSize(Long pageSize) {
		this.pageSize = pageSize;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getJobName() {
		return jobName;
	}
	public void setJobName(String jobName) {
		this.jobName = jobName;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getJobGroup() {
		return jobGroup;
	}
	public void setJobGroup(String jobGroup) {
		this.jobGroup = jobGroup;
	}
	public String getJobCron() {
		return jobCron;
	}
	public void setJobCron(String jobCron) {
		this.jobCron = jobCron;
	}
	public String getJobType() {
		return jobType;
	}
	public void setJobType(String jobType) {
		this.jobType = jobType;
	}
	public String getQuerySql() {
		return querySql;
	}
	public void setQuerySql(String querySql) {
		this.querySql = querySql;
	}
	public String getUpdColumn() {
		return updColumn;
	}
	public void setUpdColumn(String updColumn) {
		this.updColumn = updColumn;
	}
	public String getUpdateSql() {
		return updateSql;
	}
	public void setUpdateSql(String updateSql) {
		this.updateSql = updateSql;
	}
	public Long getTargetApiId() {
		return targetApiId;
	}
	public void setTargetApiId(Long targetApiId) {
		this.targetApiId = targetApiId;
	}
	public String getStatusField() {
		return statusField;
	}
	public void setStatusField(String statusField) {
		this.statusField = statusField;
	}
	public String getSuccessStatusValue() {
		return successStatusValue;
	}
	public void setSuccessStatusValue(String successStatusValue) {
		this.successStatusValue = successStatusValue;
	}
	public String getEnable() {
		return enable;
	}
	public void setEnable(String enable) {
		this.enable = enable;
	}
}

